package cn.rzpt.demo.entity;
/**
 * 对应数据库tb_role的实体
 * @author zsm
 *
 */
public class Role {
	private int id;
	private String name;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public String toString() {
		// TODO 重新toString方法，方便打印
		StringBuffer sb = new StringBuffer();
		sb.append("{");
		sb.append("id:").append("\"").append(id).append("\",");
		sb.append("name:").append("\"").append(name).append("\"");
		sb.append("}");
		
		return sb.toString();
	}
}
